<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.sql.*" %>
<%@page import="javax.servlet.jsp.tagext.TryCatchFinally"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String tousername = request.getParameter("tousername");
String content = (String)session.getAttribute("content");
if(content==null){
    content="";
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>


    <title>写留言 - 同学录 </title>
    
	<meta name="title" content="写留言 - 同学录" >
	<meta name="description" content="毕业后，又有多少人与同学断了联系" >
	<meta name="keywords" content="留言" >
    <meta http-equiv="Cache-Control" content="no-cache,no-transform,no-siteapp" />
	<meta http-equiv="Pragma" content="no-cache" />	<meta http-equiv="Expires" content="0" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta content="width=1200, maximum-scale=1.5" name="viewport">
	
    <link href="images/t1-1.png" type="image/x-icon" rel="shortcut icon">
    <link href="css/pub.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="css/footer.css" >
	<link href="css/picpas.css" rel="stylesheet">
	<link href="css/all.css" rel="stylesheet" />
    <script src="laydate/laydate.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?59109af3fb5506c5628e1ba0aaad9e4f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script src='js/alert.js' type='text/javascript'></script>



</head>
<body>
<style>
	body{
		background:url(images/message_background.jpg) top left;
		background-size:100% 95%;
		overflow:hidden;
	}
</style>
<div>
	<%@ include file="header.jsp" %>
</div>



<style>
.dialog h2{
text-indent: 1em;
background:#2b9617;
margin: 0;

height: 35px;
padding-top: 9px;
color: #FFF;
font-size: 16px;
font-weight: bold;
}


.dialog-body {
background-color: #FFF;
padding: 20px 8px;
position: relative;
overflow: hidden;
}
.form-group {
margin-left: -7px;
margin-right: -7px;
}

</style>

<%@ page import= "java.sql.*"%>
<%@ page import= "com.connect.connect"%>
<script type="text/javascript">
function checkNumber() {  
    var Number = document.getElementById("number").value;  
    if (Number == "") {  
        document.getElementById("NumberTip").innerHTML = "";  
    } else {

	        document.getElementById("NumberTip").innerHTML = "<font color='red'>× 该帐号不存在</font>"; 
	        document.getElementById("NumberTip").innerHTML ="<font color='#339933'></font>"; 
	
	         
    }     
}  
</script>

<div class="wrapper mod-publish" style="margin-top:60px;">
    <div class="crumb"><a href="">同学</a> &gt; <span>写留言</span></div>
    <h3 class="mod-title">写留言<span style=" margin-left:20px;font-size:16px; color:#FF0000;">(提交后留言条会自动显示到对方的留言薄上)</span></h3>
    <div class="bd">
    <form action="takemessage.do" method="post">
        <div class="item item-title">
            <span class="label"><em>*</em>联系人</span>
            <div class="ui-input inp-title">
                <input type="text" style="height:32px; width: 456px;margin-top:6px;"id="number" name="number"  value="<%=tousername %>" placeholder="请输入联系人"  required autofocus/>
          
            </div> 	
            <span id="NumberTip" style="margin-left:20px;color:#FF0000;"></span>  	
	    </div>
 	
        <div class="item item-notes">
            <span class="label"><em>*</em>留言内容</span>
            <div class="ui-textarea"><textarea type="text" class="_j_description " maxlength="100"  id="content" name="content" style="width:650px;height: 200px;" value="<%=content %>" placeholder="留言内容不超过50字" required autofocus></textarea></div>
         </div>
         <div class="item item-action">
            <button type="sumbit" class="btn-submit _j_submit"  style="cursor:pointer;">提交</button>     
         </div>
         </form>
	</div>
    </div>
</div>

   


 <div style="width:100%; position:fixed; left:0; bottom:0;">
<%@ include file="footer.jsp" %>
</div>
<!--[if lt IE 9]>
<iframe class="bc-warn" src="browsercheck.html" frameborder="0"></iframe>
<div class="bc-screen-lock"></div>
<link href="http://static.tuchong.net/styles/ie-checker.css?1435126808.css" rel="stylesheet" />
<![endif]-->
<div class="back-to-top direction-caret big"></div>

</body>
</html>
